function [DevSettings,check] = readLog(DevSettings)
strFs = 'DevSettings.Fs               =';
strST = 'DevSettings.sampletime       =';
strNR = 'DevSettings.num_rxs          =';
strFc = 'DevSettings.Fc               =';
strBw = 'DevSettings.Bw_rx            =';
strNB = 'DevSettings.num_buf          =';
%查找当前路径下所有文件
files = dir(DevSettings.HistoryDataPath);
m = length(files);
% 查找Log文件
for cnt = 1:m
    cmpvarL = ~isempty(regexp(files(cnt).name,'Log','match'));
    if cmpvarL
        DevSettings.HistoryDataNameL = files(cnt).name;
    end
end
FidL = fopen([DevSettings.HistoryDataPath,...
    '\',DevSettings.HistoryDataNameL],'r');
if FidL<0 % 读取配置文件失败的处理
    msgbox({'读取不到配置'},'Icon','warning');
    DevSettings = [];
    check = false;
    return;
end
fclose(FidL);% Test it. Turn it on, turn it off
data1=importdata([DevSettings.HistoryDataPath,...
    '\',DevSettings.HistoryDataNameL]);
for cnt = 1:length(data1)
    templine = (data1{cnt});
    catchstr = regexp(templine,strFs,'once');
    if ~isempty(catchstr)
        DevSettings.Fs = str2double(regexp(templine,'\d+.\d+','match'))*1e6;
    end
    catchstr = regexp(templine,strST,'once');
    if ~isempty(catchstr)
        DevSettings.ST = str2double(regexp(templine,'\d+.\d+','match'))*1e3;
    end
    catchstr = regexp(templine,strNR,'once');
    if ~isempty(catchstr)
        DevSettings.NR = str2double(regexp(templine,'\d+.\d+','match'));
    end
    catchstr = regexp(templine,strFc,'once');
    if ~isempty(catchstr)
        DevSettings.Fc = str2double(regexp(templine,'\d+.\d+','match'))*1e6;
    end
    catchstr = regexp(templine,strBw,'once');
    if ~isempty(catchstr)
        DevSettings.Bw = str2double(regexp(templine,'\d+.\d+','match'))*1e6;
    end
    catchstr = regexp(templine,strNB,'once');
    if ~isempty(catchstr)
        DevSettings.NB= str2double(regexp(templine,'\d+.\d+','match'));
    end
end
check = isfield(DevSettings,'Fs')&&...
    isfield(DevSettings,'ST')&&...
    isfield(DevSettings,'NR')&&...
    isfield(DevSettings,'Fc')&&...
    isfield(DevSettings,'Bw')&&...
    isfield(DevSettings,'NB');
end